<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>demo</title>
  <script type="text/javascript" src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <div style="width:100px; height: 100px; background-color: brown;">zero</div>
    <div :style="onestyle">one</div>
    <div :style="twotyle">two</div>
    <div style="width:100px; height: 100px; background-color: brown;" :style="threestyle">three</div>
  </div>
</body>
<script type="text/javascript">
  Vue.config.productionTip = false;
  const vm = new Vue({
    el: "#app",
    data() {
      return {
        onestyle: {
          width: "100px",
          height: "100px",
          background: "green"
        },
        twotyle: [{
          width: "100px",
          height: "100px"
        },
        {
          background: "blue"
        },
        {
          fontSize: "50px"
        }
        ],
        threestyle: {
          fontSize:"30px",
          background: "yellow"
        }
      }
    }
  })
</script>

</html>